package cn.com.pet.common.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.pet.common.dao.UserLevelMapper;
import cn.com.pet.common.entity.UserLevel;
import cn.com.pet.common.service.UserLevelService;

@Service("userLevelService")
public class UserLevelServiceImpl implements UserLevelService {

	@Autowired
	UserLevelMapper userLevelMapper;

	@Override
	public List<UserLevel> getUserLevels(UserLevel userLevel) {
		return userLevelMapper.getUserLevels(userLevel);
	}

	@Override
	public void addUserLevel(UserLevel userLevel) {
		userLevelMapper.addUserLevel(userLevel);
	}

	@Override
	public void updateUserLevel(UserLevel userLevel) {
		userLevelMapper.updateUserLevel(userLevel);
	}
}
